package com.example.demo.dao;

import com.example.demo.entity.Order;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface OrderDAO {
    public List<Order> findOrders(@Param("userid") int userid);
    public void deleteOrder(Order order);
    public void insertOrderAndId(Order order);
    public void insertOrder(Order order);



    void changeStatus(Order order);

    List<Order> listOrder(int start,@Param("status") int status);

    int listOrderTotal(@Param("status") int status);
}
